package cn.tedu.system.oa.stamp.canal;

import cn.tedu.system.oa.stamp.pojo.entity.Stamp;
import cn.tedu.system.oa.stamp.service.StampService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
//import top.javatool.canal.client.annotation.CanalTable;
//import top.javatool.canal.client.handler.EntryHandler;
//@Slf4j
//@Component
/**
 * 更改双写方法，不用canal同步
 */
//@CanalTable("seal_management")
//public class StampSyncHandler implements EntryHandler<Stamp> {
//    @Autowired
//    private StampService stampService;
//
//    @Override
//    public void insert(Stamp stamp) {
//        log.debug("数据表 seal_management 插入了新的数据:{}",stamp);
////        stampService.insert(stamp);
//        EntryHandler.super.insert(stamp);
//    }
//
//    @Override
//    public void update(Stamp before, Stamp after) {
//        EntryHandler.super.update(before, after);
//    }
//
//    @Override
//    public void delete(Stamp stamp) {
//        EntryHandler.super.delete(stamp);
//    }
//}
